<template>
<el-col>
   <el-col  v-for="item in btnData" :key="item.id" :span="4">
      <el-button class="filter-item" :type="item.cssType||'primary'" v-if="item.location=='1'" @click="item.method">
       {{item.name}}
      </el-button>
   </el-col>
</el-col>     
</template>

<script>
export default {
 data(){
     return {
      btnData:[]
     }
    
 },
 created(){
    this.btnData=this.$store.state.button.currentMenuButton.filter((e)=>{return e.location=='1'})
 }
}
</script>

<style>

</style>